<?php 
/* SVN FILE: $Id$ */
/* SnatchLog Test cases generated on: 2009-05-31 01:05:54 : 1243746654*/
App::import('Model', 'SnatchLog');

class SnatchLogTestCase extends CakeTestCase {
	var $SnatchLog = null;
	var $fixtures = array('app.snatch_log');

	function startTest() {
		$this->SnatchLog =& ClassRegistry::init('SnatchLog');
	}

	function testSnatchLogInstance() {
		$this->assertTrue(is_a($this->SnatchLog, 'SnatchLog'));
	}

	function testSnatchLogFind() {
		$this->SnatchLog->recursive = -1;
		$results = $this->SnatchLog->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('SnatchLog' => array(
			'id'  => 1,
			'snatchid'  => 1,
			'userid'  => 1,
			'bid_price'  => 1,
			'bid_time'  => '2009-05-31 01:10:53'
		));
		$this->assertEqual($results, $expected);
	}
}
?>